/*
 * @version: 1.0
 * @Author: zhl
 * @Date: 2021-09-26 10:18:20
 * @LastEditors: zhl
 * @LastEditTime: 2021-09-27 19:07:14
 * @Description: 文件实现描述
 */
#include "SyncManager.h"
#include <stdio.h>


SyncManager::SyncManager(/* args */){
}

SyncManager::~SyncManager(){
}


void SyncManager::wait(int ms){
    if(1 > ms){
        return ;
    }
    c_notify.lock();
    c_notify.timewait(ms);
    c_notify.unlock();
}

void SyncManager::signal(){
    c_notify.lock();
    c_notify.signal();
    c_notify.unlock();
}